<?php
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$this->headTitle()->setSeparator(' - ');
$this->headTitle('Wroom, l\'encyclopedie de la F1 : Login');
echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
	<head>
		<?php echo $this->headMeta(); ?>
		<?php echo $this->headTitle(); ?>
		<?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/style.css')
									->prependStylesheet($this->baseUrl().'/css/jquery.fancybox.css')
									->prependStylesheet($this->baseUrl().'/css/jquery.ui.css')
									->prependAlternate($this->url(array('controller'=>'rss','action'=>'index'), 'default'), 'application/rss+xml', 'RSS'); ?>
		<?php echo $this->headScript()->appendFile($this->baseUrl().'/js/jquery.js')
									  ->appendFile($this->baseUrl().'/js/jquery.fancybox.js')
									  ->appendFile($this->baseUrl().'/js/jquery.qtip.js')
									  ->appendFile($this->baseUrl().'/js/jquery.ui.js')
									  ->appendFile($this->baseUrl().'/js/js.js'); ?>
		
	</head>
	<body>
		<div id="wrapper">
			<div id="header">
				<img alt="logo" id="logo" src="<?php echo $this->baseUrl().'/images/wroom.png'; ?>" />
			</div>
			<div id="content">
				<?php
					echo "<h1>Login</h1>";
					$this->loginForm->setAction($this->url());
					echo $this->loginForm;
					if($this->errorMessage != "")
					{
						echo $this->partial('partial/errorbox.phtml',array('message' => $this->errorMessage));
					}
				?>
				<div style="clear:both;"></div>
			</div>
			<div id="footer">
				Etude de cas PHP | IUT du Limousin - Département Informatique
			</div>
		</div>
	</body>
</html>